<div id="app-container" class="container" myapp="STORE_WECHAT_INFOS_EDIT">

  <div class="app">
     <div class="app-inner clearfix">
      <div class="widget-list-filter">
        <%= link_to "添加产品类别", new_ruiqu_store_product_category_path, class: 'ui-btn ui-btn-success' %>
        <p class="help-block error-message flash-notice" style=""> <%= notice %></p>
      </div>
         <table id="wechat_table" class="ui-table ui-table-list">
          <thead>
              <tr>
                <th>
                  #
                </th>
                <th>
                  <%= "名字" %>
                </th>
                <th>
                  <%= "操作" %>
                </th>
              </tr>
          </thead>
          <tbody>
              <% @product_categories.each_with_index do |category, i| %>
                <tr>
                  <td>
                    <%= i + 1 %>
                  </td>
                  <td>
                    <%= category.name %>
                  </td>
                  <td>
                    <%= link_to '删除', unuse_ruiqu_store_product_category_path(category), method: :put, data: {confirm: "确认删除吗?"}%>

                    <%= link_to '编辑', edit_ruiqu_store_product_category_path(category) %>

                    <%= link_to '此类产品', ruiqu_product_category_products_path(category) %>
                  </td>
                </tr>
              <% end %>
          </tbody>
        </table>
      </div>
  </div>

</div>
